#ifndef MAINWIDGET_H
#define MAINWIDGET_H


#include <QPoint>
#include <QPixmap>
#include <QPainter>
#include <QWidget>
#include <QTime>
#include <QTimer>
//#include <QEvent>
namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MainWidget(QWidget *parent = 0);
    ~MainWidget();

private:
    Ui::MainWidget *ui;
    QPoint center;
    QTimer *timer;

    int second;
    int minute;
    int hour;
    void getRealTime();
    void showTime();
    void paintEvent(QPaintEvent *event);
private slots:
    void timeChanged();
};

#endif // MAINWIDGET_H
